package com.unhz.generator.dao;

import com.unhz.generator.pojo.SysPermission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by cxg on 2017/11/14 0014.
 *
 * @Author 曹显贵
 * @Date 2017/11/14 0014 11:48
 */
@Repository
public interface SysPermissionCustomMapper {

    List<SysPermission> findMenuByUserId(@Param("id") Integer id);

    List<SysPermission> findPermissionByUserId(@Param("id") Integer id);

    List<SysPermission> findPermissionByRoleId(@Param("roleId") Integer roleId);

    List<SysPermission> findMenuByRoleId(@Param("roleId") Integer roleId);
}
